package net.ozgul.chordmaster;

import net.ozgul.chordmaster.Interval;
import net.ozgul.chordmaster.Scale;
import junit.framework.TestCase;

public class ScaleTest extends TestCase {
  
  public void testMajorScale() {
    Scale s = Scale.MAJOR;
    int[] steps = {2,2,1,2,2,2,1};
    int i=0;
    int distance = 0;
    for (Interval interval : s) {
      assertEquals(interval.getDistanceFromRoot(), distance);
      distance += steps[i % 7];
      i++;
    }
  }
}
